import request from '@/utils/request'

export function getDictListByDict(token, params) {
  return request({
    url: '/system/dict/findDictByDict',
    method: 'post',
    data: params
  })
}

export function getDictList(token, params) {
  return request({
    url: '/system/dict/list',
    method: 'post',
    data: params
  })
}

export function addDict(token, params) {
  return request({
    url: '/system/dict/add',
    method: 'post',
    data: params
  })
}

export function updateDict(token, params) {
  return request({
    url: '/system/dict/update',
    method: 'post',
    data: params
  })
}

export function getSingleDict(token, params) {
  return request({
    url: '/system/dict/selectByPrimaryKey',
    method: 'post',
    data: params
  })
}

export function deleteDict(token, params) {
  return request({
    url: '/system/dict/delete',
    method: 'post',
    data: params
  })
}

